export const tableOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "dialogClickModal": false,
  "searchMenuSpan": 6,
  "column": [
	  {
      "type": "select",
      "label": "车辆",
      "prop": "carNo",
      "span": 12,
      filterable: true,
      search: true,
      width: 120,
      dicUrl: '/act/car/page?size=-1&status=1',
      props: {
        label: 'carNo',
        value: 'carNo',
        res: "data.records"
      },
      rules: [{
        required: true,
        message: '请选择车辆',
        trigger: 'change'
      }],
    },	  {
      "type": "select",
      "label": "费用类别",
      "prop": "type",
      "span": 12,
      search: true,
      dicUrl: "/admin/dict/type/car_fee_type",
      rules: [{
        required: true,
        message: '请选择费用类别',
        trigger: 'blur'
      }],
    },	  {
      "type": "select",
      "label": "关联派车单",
      filterable: true,
      formslot: true,
      searchLabelWidth: 100,
      "prop": "dispatchId",
      "span": 12,
      search: true,
      width: 120,
      dicUrl: '/act/cardispatchbill/page?size=-1',
      props: {
        label: 'bizTitle',
        value: 'dispatchId',
        res: "data.records"
      }
    },	  {
      "type": "input",
      "label": "费用名称",
      "prop": "name",
      "span": 12,
      maxlength: 120,
      search: true,
      rules: [{
        required: true,
        message: '请填写费用名称',
        trigger: 'blur'
      }],
    },	  {
      "type": "date",
      "label": "费用发生时间",
      "prop": "feeTime",
      "span": 12,
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
    },	  {
      "type": "number",
      "label": "金额",
      "prop": "fee",
      "span": 12,
      maxRows: 1000000,
      minRows:0,
      rules: [{
        required: true,
        message: '请填写金额',
        trigger: 'blur'
      }],
      value: 1,
    },	  {
      "type": "select",
      "label": "发票类型",
      "prop": "invoiceType",
      "span": 12,
      search: true,
      rules: [{
        required: true,
        message: '请选择发票类型',
      }],
      dicUrl: "/admin/dict/type/invoice_type"
    },	  {
      "type": "number",
      "label": "发票张数",
      "prop": "invoiceNumber",
      "span": 12,
      maxRows: 1000000,
      minRows:0,      
      value: 0,
    },	  {
      "type": "number",
      "label": "发票金额",
      "prop": "invoiceFee",
      "span": 12,
      maxRows: 1000000,
      minRows:0,
      value: 0,
    },	  {
      "type": "number",
      "label": "已保里程",
      "prop": "maintenanceKm",
      "span": 12,
      addDisplay: false,
      editDisplay: false,
      maxRows: 1000000,
      minRows:0,
    },	  {
      "type": "upload",
      "label": "附件",
      slot: true,
      formslot: true,
      "prop": "attachment",
      accept: [],
      propsHttp: {
        res: 'data',
        name: "original"
      },
      props: {
        label: "original",
        value: "url"
      },
      action: "/act/file/upload",
      listType: 'file',
      hide: true,
      "span": 24
    // },	  {
    //   "type": "upload",
    //   "label": "附件",
    //   slot: true,
    //   showColumn: false,
    //   addDisplay: false,
    //   editDisplay: false,
    //   "prop": "attachment1",
    //   accept: [],
    //   propsHttp: {
    //     res: 'data',
    //     name: "original"
    //   },
    //   props: {
    //     label: "original",
    //     value: "url"
    //   },
    //   action: "/act/file/upload",
    //   listType: 'file',
    //   hide: true,
    //   "span": 24
    },	  {
      "type": "textarea",
      "label": "备注",
      "prop": "remark",
      maxlength: 512,
      "span": 24
    },	  {
      "type": "input",
      "label": "经办人",
      "prop": "handleRealname",
      "span": 12,
      editDisabled: true,
      addDisplay: false
    },	  {
      "type": "input",
      "label": "部门",
      "prop": "deptName",
      "span": 12,
      editDisabled: true,
      addDisplay: false
    },	  {
      "type": "input",
      "label": "创建时间",
      "prop": "createTime",
      "span": 12,
      editDisabled: true,
      addDisplay: false
    },	  {
      "type": "input",
      "label": "更新时间",
      "prop": "updateTime",
      "span": 12,
      editDisabled: true,
      addDisplay: false
    }]
}
